﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Entities
{
    public class Discipline : BaseEntity<int>
    {
        public Discipline()
        {
            StudyPlanItems = new List<StudyPlanItem>();
        }

        public virtual string DisciplineTitle { get; set; }
        public virtual IList<StudyPlanItem> StudyPlanItems { get; private set; }
        
        public virtual void AddPlanItem(StudyPlanItem PlanItem)
        {
            PlanItem.Discipline = this;
            StudyPlanItems.Add(PlanItem);
        }
    }
}